/**
 * 
 */     
     function ajax_form(obj,url,parent_table) {
    	 layer.confirm('你确定要提交表单吗?', {icon: 3, title:'提示'},function(index){
    		  $(obj).ajaxSubmit({
    			    dataType : 'json',
	    			success : function(data) {
	    				if (data.success) {
	    					layer.msg(data.message, {icon: 6,time: 1000});
	    					if (url != null) {
	    						setTimeout(function(){
	    	                        window.location.href=url;
	    	                    },1000);	 
							}
	    					if ($(parent_table).length != 0) {
	    						setTimeout(function(){
	    							$('#modal-Edit').modal('hide');
	    							$(parent_table).bootstrapTable('refresh');	    							
	    	                    },1000);	    						
							}
	    					 
	    				} else {
	    					layer.msg(data.message, {icon: 5,time: 1000});
	    				}
					}, //提交后的回调函数	    			
	    			error : function(data) {
	    				layer.msg("失败，请重新尝试！", {icon: 5,time: 1000});	    				
	    			}
    		  });
	    	  layer.close(index);
	      });    	     	   	  
   	 			
	}      	    		    		